package com.aneliya.command.chatWindow;

import com.aneliya.framework.mvc.Facade;
import com.aneliya.framework.mvc.controller.ICommand;
import com.aneliya.framework.mvc.controller.MVCEvent;
import com.aneliya.proxy.MessagesProxy;

public class MessageSend implements ICommand {

	public void execute(MVCEvent event) {
		try {
			MessagesProxy messagesProxy = (MessagesProxy) Facade.getInstance().retrieveProxy("MessagesProxy");
			messagesProxy.sendMessage((String) event.data);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

}
